// 文件名：AliPayService.java
package com.example.payment.service;

import com.alipay.api.AlipayApiException;
import com.alipay.api.response.AlipayTradePrecreateResponse;
import com.alipay.api.response.AlipayTradeRefundResponse;

public interface AliPayService {
    AlipayTradePrecreateResponse createPreOrder(String outTradeNo, String totalAmount, String subject) throws AlipayApiException;

    AlipayTradeRefundResponse AlipayTradeRefund(Long outTradeNo, String refundAmount) throws AlipayApiException;
}